Secure approach to send data from one system to another

ABSTRACT

A secure approach for sending a original message from a sender to a receiver. The sender may encrypt the original message by performing an XOR (or XNOR) operation of the original message and a first random message (same size as original message) on a bit by basis to generate a second message. The receiver may also perform an XOR of the second message with a locally generated second random message. The resulting message is sent to the sender system. The sender system may again perform XOR operation of the received message and the first random message, and send the resulting message to receiver. The receiver may perform XOR operation on the received output to generate the original message sent by the sender. Other technologies such as digital signatures and key pairs (public key infrastructure) may be used in each communication between the sender and receiver to further enhance security.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to information security, and more specifically to a method and apparatus to securely send data from one system to another.

[0003] 2. Related Art

[0004] It is often required to send data (“original message”) from one system (“sender system”) to another (“receiver system”). One typical concern while sending messages over any medium (Internet, etc.) is that an unknown third party (“intruder”) may decipher the original messages when in transit between the two systems. In addition, the intruder may also modify the original messages and then deliver the modified messages to the receiver system. Accordingly, it is often desirable to send the original messages in a secure manner which addresses one or more of such concerns as is well known in the relevant arts.

[0005] One approach for securely sending messages is by using a key (“shared key”), which is shared by both a sender system and a receiver system. In a typical scenario, a sender system encrypts a original message using the shared key to generate an encrypted message. The sender system sends the encrypted message to the receiver system. The receiver system then decrypts the message using the shared key to recover the original message.

[0006] One problem with the above approach is that a shared key needs to be sent to at least one of the two systems to facilitate sharing of a generated key. Unfortunately, an intruder may have access to the key while the key is being thus sent, and the security may be thereafter compromised. In addition, each pair of sender system and receiver system may need to have a different shared key to ensure that third parties cannot easily decipher the underlying message. As a result, the corresponding solutions may not scale to situations in which a large of number of senders and receivers are present.

[0007] One solution to the above problem is by using a pair of keys (“key pair”) at least for a receiver system. The key pair generally contains a private key and a public key generated according to a mathematical approach such that a message encrypted with a public key can be decrypted using the corresponding private key. The public key may be provided to any of the sender systems, and the private key is maintained confidential at the receiver system.

[0008] When sending a message, the sender system encrypts the message using the to public key of the receiver. On receiving the message, the receiver decrypts the encrypted message using the private key and thus recovers the original message. As the private key need not be sent to any of the sender systems, the probability of maintaining private key confidential is greatly enhanced. In addition, as the public key can be shared with any number of sender systems, the approach generally scales to a large number of sender and receiver systems.

[0009] U.S. Pat. No. 4,218,582 entitled, “Public key cryptographic apparatus and method”, issued to Hellman et al (hereafter “582 patent”) discloses example embodiments of such a system using a combination of public and private key. U.S. Pat. No. 4,405,829 entitled , “Cryptographic communications system and method” issued to Rivest et al also discloses systems for communication using public keys.

[0010] However, even in the key pair based approaches, the level of security is generally proportional to the length (or two power the length) of the private keys. However, with a large number of computations, an intruder may use several values as private keys until a correct private key causes the encrypted message to be deciphered.

[0011] Accordingly, there have been attempts to increase the length of the (private) keys (to 128 bits or higher) to make the level of security generally higher. However, with availability of greater computational power in a cost-effective manner, the longer keys also may not be adequate to satisfy the security needs of at least some applications.

[0012] Several other attempts are also well known to address some of the problems noted above. For example, U.S. Pat. No. 4,200,770, issued to Hellman et al (hereafter “770 patent”) discloses a cryptographic system which transmits a computationally secure cryptogram over an insecure communication channel without prearrangement of a cipher key. The 770 patent discloses that a secure cipher key is generated by the conversers from transformations of exchanged transformed signals. The conversers each possess a secret signal and exchange an initial transformation of the secret signal with the other converser. The received transformation of the other converser's secret signal is again transformed with the receiving converser's secret signal to generate a secure cipher key.

[0013] The system of the 770 patent thus appears to require exchange of a secret signal, which in turn is used to generate a secure cipher key. Such a overhead of having to exchange the secret signal may be unacceptable at least in some environments. What is therefore needed is a method and apparatus to deliver messages securely from one system to another.

SUMMARY OF THE INVENTION

[0014] The present invention allows an original message to be sent from a sender system (“sender”) to a receiver system (“receiver”) in a secure manner. In an embodiment, a computational logic is selected in both the sender and receiver such that an original message is regenerated when the computation logic is performed on the original message multiple times, with an output of the computation logic of one time being used as an input to the computation logic next time.

[0015] In operation, a sender may perform a computational logic on an original message to encrypt the original message and to generate a second message. The second message is sent to a receiver. The receiver in turn may perform another computational logic on the second message to generate a third message. The third message is sent the sender. The sender performs the computational logic on the third message, and sends the resulting fourth message to the receiver. The receiver generates (recovers) the original message by performing the computational logic on the fourth message.

[0016] The computational logic may need to be associative and commutative. In one implementation, the computational logic is implemented as either an XOR or XNOR operation, with the operation being performed on a bit-by-bit basis with a random message of the same size as the original message. The random messages may be generated locally in each of the sender and receiver.

[0017] From the above, it may be appreciated that embodiments according to an aspect of the present invention can be implemented without having to exchange any secret keys or key pairs to send a message in a secure manner. However, security may be further enhanced by using digital signatures, key pairs, digital certificates and/or message digests as described below.

[0018] In an embodiment, the message generated by applying the computational logic is first encrypted using the public key of the other system to generate an encrypted message. A message digest is generated by applying a one way hashing algorithm on the encrypted message. A digital signature is then generated by encrypting the message digest using the private key of the system sending the encrypted message. The digital signature and the encrypted message are sent to the other system.

[0019] The other system may first decrypt the digital signature using the public key of the sending system to recover the message digest generated at the sending system. A new message digest may be generated by applying the one-way hash on the encrypted message. If the new message is identical to the decrypted message digest, the other system may determine the encrypted message has in fact not been modified by an unknown third party. The received encrypted message is decrypted using the private key of the other system, and the computational logic is then applied on the decrypted message.

[0020] Further features and advantages of the invention, as well as the structure and operation of various embodiments of the invention, are described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers generally indicate identical, functionally similar, and/or structurally similar elements. The drawing in which an element first appears is indicated by the leftmost digit(s) in the corresponding reference number.

BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The present invention will be described with reference to the accompanying drawings, wherein:

[0022]FIG. 1 is a block diagram illustrating an example environment in which the present invention may be implemented;

[0023]FIG. 2 is a flow chart illustrating a method to send messages securely according to an aspect of the present invention;

[0024]FIG. 3 is a flow chart illustrating the manner in which a sender system sends a second message to a receiver system;

[0025]FIG. 4 is a flow chart illustrating the manner in which a receiver system sends a third message to a sender system;

[0026]FIG. 5 is a flow chart illustrating the manner in which a sender system sends a fourth message to a receiver system;

[0027]FIG. 6 is a flow chart illustrating the manner in which a receiver system recovers an original message;

[0028]FIG. 7 is a block diagram illustrating the manner in which security can be further enhanced by using a third system between a sender system and a receiver system; and

[0029]FIG. 8 is a block diagram illustrating an embodiment of the present invention implemented substantially in the form of software.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0030] 1. Overview and Discussion of the Invention

[0031] A sender system according to an aspect of the present invention may use a computational logic to encrypt an original message (causing a “second message” to be generated). The computational logic may be chosen such that when performed on a given message multiple times, the given message is generated again. A receiver system may also use a computational logic to encrypt the second message again, and send back the resulting third message to the sender system.

[0032] The sender system applies the computational logic on the third message to generate a fourth message and sends it to the receiver system. Receiver system applies computational logic on the fourth message to generate a fifth message. The sending and receiving sequences may be continued until the choice of computational logic would cause the original message to be generated at the receiver system. In one embodiment described below, an XOR operation is chosen for the computational logic such that the computational logic is applied twice at each of the sender system and the receiver system while sending an original message.

[0033] Several aspects of the invention are described below with reference to examples for illustration. It should be understood that numerous specific details, relationships, and methods are set forth to provide a full understanding of the invention. One skilled in the relevant art, however, will readily recognize that the invention can be practiced without one or more of the specific details, or with other methods, etc. In other instances, well-known structures or operations are not shown in detail to avoid obscuring the invention.

[0034] 2. Example Environment

[0035]FIG. 1 is a block diagram illustrating an example environment in which the present invention can be implemented. There are shown sender system 110 and receiver system 170 connected by communication path 117. Each component is described in further detail below.

[0036] Communication path 117 represents any technology/medium providing connectivity between sender system 110 and receiver system 170. Examples of communication path 117 include Internet, dial-up connection using modems, etc. Communication path 117 may be implemented in a known way.

[0037] Sender system 110 may need to send messages (“original message”) to receiver system 170 on communication path 117. It may be required to send the message to receiver system 170 securely. The manner in which an original message may be sent by sender system 110 to receiver system 170 securely is described below with reference to FIG. 2.

[0038] 3. Sending Messages Securely

[0039]FIG. 2 is a flow chart illustrating the manner in which sender system 110 may send a message (“original message”) securely to receiver system 170. The method is described with reference to FIG. 1 for illustration. However, the method may be used in other environments as well. The method begins in step 201 and the control immediately passes over to step 210.

[0040] In step 210, a computational logic may be selected such that the original message will be generated when the computational logic is performed on the original message twice using the same operand. In addition, the computational logic may be required to be both associative (i.e., (A OP B) OP C=A OP (B OP C)) as well as commutative (i.e., A OP B=B OP A), wherein OP represents a computational logic.

[0041] In an embodiment, exclusive OR (XOR) operation may be selected as the computational logic because applying XOR with the same operand twice causes the original message to be generated and XOR operation is both associative and commutative. However, more complex expressions (potentially containing many equations) may be used for a computational logic.

[0042] In step 220, sender system 110 may perform the computational logic on the message (“original message”) which needs to be sent to receiver system 170. The message thus generated may be referred to as a second message. In step 230, sender system 110 may send the second message to receiver system 170.

[0043] In step 240, receiver system 170 may receive the second message and perform a computational logic on the second message to generate a third message. The computational logic in receiver system 170 may need to satisfy the criteria noted with reference to step 210 above. While the embodiments are described as using the same computation logic in both sender system 110 and receiver system 170, different computational logics may be implemented in the two systems to the extent the selection criteria of step 210 is satisfied. For example, receiver system 170 may use XNOR operation.

[0044] In step 250, receiver system 170 may send the third message to sender system 110. In step 260, sender system 110 may perform the computational logic (of step 210) on the third message (received in step 250) to generate a fourth message.

[0045] In step 270, sender system 110 may send the fourth message to receiver system 170. In step 280, receiver system 170 may perform computational logic (of step 240) on the fourth message (received in step 260) to generate a fifth message. The fifth message would be identical to the original message sent by sender system 110 in step 210 as described in sections below. However, several embodiments may be implemented which take into account additional security considerations. An example embodiment taking some considerations into account is described first.

[0046] 4. Implementation

[0047] In one embodiment, the computational logic is implemented to perform an XOR operation of an original message with a random message (RM-A) having the same length/size as the original message (on a bit by bit basis). The random message may be generated in a known way. The resulting “second message” is sent to receiver system 170.

[0048] The receiver system 170 may perform a XOR operation of the second message with another random message (RM-B) of same size to generate a third message. The third message is sent to sender system 110.

[0049] Sender system 110 again performs an XOR operation of the third message and RM-A as an operand to generate a fourth message. Due to the associate and commutative properties of XOR operation, the fourth message equals the original message XORed with RM-B. The fourth message is sent to receiver system 170.

[0050] Receiver system 170 may perform an XOR operation of the fourth message and RM-B to generate a fifth message. Due to the associative and commutative properties of XOR operation, the fifth message is identical to the original message.

[0051] To further enhance the security while sending messages, technologies such as digital certificates and public key infrastructure may be used. Some of the technologies are described in a book entitled, “Applied Cryptography”, Second Edition, ISBN Number: 0-471-11709-9, which is incorporated into the present application by reference in its entirety herewith.

[0052] In an embodiment, sender system 110 may further encrypt the first message with a public key of receiver system 170. Thus, a original message may be encrypted twice, once with random message and then with the public key of receiver system 170.

[0053] Sender system 110 may also attach a digital signature to the message being sent for more security. A one way hashing algorithm (on the output generated by using the public key) may first be applied to generate a message digest, and the message digest may be encrypted using the private key of sender system 110 to generate a digital signature. The digital signature may be generated in a known way. The digital signature may be sent along with the output generated by using the public key.

[0054] Receiver system 170 may verify the digital signature attached to the second message in a known way, confirming that the underlying message has not been modified. The public key of sender system 110 may be used in verifying the digital signature, and may be performed in a known way.

[0055] Receiver system 170 may use its own private key to decrypt the message (generated at sender system 110 using the public key of receiver system 170) received along with the digital signature. The decryption may be performed in a known way. Receiver system 170 may then apply a computational logic (similar to that applied by sender system 110) to the decrypted message.

[0056] The message thus generated may again be encrypted (using the public key of sender system 110) and sent along with a digital signature (generated using the private key of receiver system 170). Thus, sender system 110 and receiver system 170 may exchange the messages generated according to the flow-chart of FIG. 2 using key pairs and digital signatures as described above.

[0057] Once the receiver system 110 receives a message a final (second) time and applies the computational logic, the resulting message may equal to original message sought to be sent from sender system 110 to receiver system 170 as described below with reference to theoretical basis.

[0058] 5. Theoretical Basis

[0059] The above approach may be mathematically illustrated as described below. The following notations are used for illustration. The original message sent by sender system 110 may be represented by ‘OM’, the random message generated by sender system 110 may be represented as ‘RM-A’, the random message generated by receiver system 170 may be represented as ‘RM-B’.

[0060] Encryption may be represented by the alphabet ‘E’. Thus, a message encrypted using the private key of sender system 110 is represented as ‘EA (M)’, a message encrypted using the public key of sender system 110 is represented as ‘EA′(M)’. Similarly, a message encrypted using the private key of receiver system 170 is represented as ‘EB (M)’ and a message encrypted using the private key of receiver system 170 is represented as ‘EB′(M)’.

[0061] Decryption may be represented by the alphabet ‘D’. Thus, a message decrypted using the private key of receiver system 170 is represented as ‘DB(M)’, a message decrypted using the public key of receiver system 170 is represented as ‘DB′(M)’. Similarly, a message decrypted using the private key of sender system 110 is represented as ‘DA(M)’ and a message decrypted using the private key of sender system 110 is represented as ‘DA′(M)’.

[0062] The XOR operation between two messages on a bit by bit basis may be represented as ‘X(M,R)’, where ‘M’ and ‘R’ represent different two messages. Thus, the second message, i.e., the message sent by sender system 110 to receiver system 170 may be represented mathematically as follows.

Second message=EB′(X(OM, RM-A))+digital signature   Equation (1)

[0063] Receiver system 170 receives the second message and performs various operations on the second message as described in the earlier section to generate the third message. The third message may be represented as follows:

Third message=EA′(X(DB(EB′(X(OM, RM-A))), RM-B))+digital signature   Equation (2)

[0064] Sender system 110 performs various operations on the third message as described in the earlier section to generate the fourth message. The fourth message may be represented as follows:

Fourth message=EB′(X(DA(EA′(X(DB(EB′(X(OM, RM-A))), RM-B))), RM-A))+digital signature   Equation (3)

[0065] Receiver system 170 decrypts the fourth message to generate the fifth message. The fifth message may be represented as follows:

Fifth message=X(DB(EB′(X(DA(EA′(X(DB(EB′(X(OM, RM-A))), RM-B))), RM-A))), RM-B)   Equation (4)

[0066] As described earlier, the fifth message may correspond to the original message. The manner in which the fifth message corresponds to the original message may be illustrated by simplifying equation (4).

[0067] The expression “DB(EB′(X(OM, RM-A)))” contained in equation (4) may equal “X(OM, RM-A)” since “X(OM, RM-A)” has been encrypted using the public key of receiver system 170 and then decrypted using the private key of receiver system 170. Thus equation (4) may be simplified as:

Fifth message=X(DB(EB′(X(DA(EA′(X(X(OM, RM-A), RM-B))), RM-A))), RM-B)   Equation (5)

[0068] Similarly expression “DA(EA′(X(X(OM, RM-A),RM-B)))” may equal X(X(OM, RM-A),RM-B). Thus equation (5) may be further simplified as:

Fifth message=X(DB(EB′(X(X(X(OM, RM-A), RM-B), RM-A))), RM-B)   Equation (6)

[0069] Again, the expression “DB (EB′(X(X(X(OM, RM-A),RM-B),RM-A))) equals “X(X(X(OM, RM-A),RM-B),RM-A)”. Thus, equation (6) reduces to:

Fifth message=X(X(X(X(OM, RM-A), RM-B), RM-A), RM-B)   Equation (7)

[0070] As is well known, the XOR operation is associative as well as commutative. That is, X(X(P, Q), R) equals X(X(P, R), Q), and also equals X(X(Q, P), R) etc. Therefore, equation (7) may be re-arranged as follows:

Fifth message=X(X(X(X(RM-A, RM-A), RM-B), RM-B), OM)   Equation (8)

[0071] As is well known, X(P, P)=0, thus equation (8) may be further simplified as follows:

Fifth message=X(X(X(0, RM-B), RM-B), OM)   Equation (9)

[0072] Again, as is well known, X(0, P)=P, thus equation (9) may be further simplified as follows:

Fifth message=X(X(RM-B, RM-B), OM)   Equation (10)

[0073] Since X(P, P)=0 and X(0, P)=P, equation (10) may be further simplified as follows:

Fifth message=OM   Equation (11)

[0074] Thus, from equation (11) it may be noted that the fifth message generated by receiver system 170 equals the original message (OM) sent by sender system 110.

[0075] The operation of sender system 110 and receiver system 170 in sending and receiving message in accordance with equations 1 through 11 noted above, is summarized below in further detail with reference to the flow-charts of FIGS. 3-6.

[0076] 6. Sender System Sending First Time

[0077]FIG. 3 is a flow chart illustrating the manner in which sender system 110 sends an original message to receiver system 170 in a first of multiple iterations (times). The method begins in step 301 and control immediately passes to step 310.

[0078] In step 310, sender system 110 performs an XOR operation of the original message and the random message (RM-A) received as inputs, on a bit by bit basis to generate a second message. The random message may be generated in a known way. In step 330, sender system 110 may encrypt the second message using the public key of receiver system 170 to generate an encrypted second message. The encryption may be performed in a known way.

[0079] In step 350, sender system 110 may perform a one-way encryption (using one of several known hashing algorithms) to generate a first message digest. In step 370, the first message digest may be encrypted with the private key of sender system 110 to generate a digital signature. Steps 350 and 370 may be performed in a known way.

[0080] In step 390, sender system 110 may send a packaged second message to receiver system 170. The packaged second message may contain the encrypted second message, the hashing algorithm used (or an identifier thereof), and the digital signature. The manner in which receiver system 170 processes the packaged second message is described below.

[0081] 7. Receiver System Processing First Time

[0082]FIG. 4 is a flow chart illustrating the operations performed on the packaged second message by receiver system 170. The method begins in step 401, in which control passes immediately to step 410.

[0083] In step 410, receiver system 170 may receive the packaged second message containing the encrypted second message and digital signature. In step 420, receiver system 170 may decrypt the digital signature using the public key of sender system 110 to generate the first message digest. In step 430, receiver system 170 may perform a one way encryption on the encrypted second message to generate a new first message digest. The algorithm used for one-way encryption may be specified in the packaged second message or be pre-determined.

[0084] In step 435, receiver system 170 may compare the first message digest (generated in step 420) with the new first message digest (generated in step 430). If the first message digest equals the new first message digest, it may be concluded that the packaged second message has not been modified by an unknown third party and that sender system 110 has sent the message.

[0085] In step 440, receiver system 170 may decrypt the encrypted second message using the private key of receiver system 170 to generate the second message. In step 450, receiver system 170 may perform an XOR operation between the second message and a random message (RM-B) to generate a third message.

[0086] In step 460, receiver system 170 may encrypt the third message with the public key of sender system 110 to generate a encrypted third message. In step 470, receiver system 170 performs a one-way encryption on the encrypted third message to generate a second message digest. In step 480, receiver system 170 may encrypt the second message digest with the private key to generate a digital signature.

[0087] In step 490, receiver system 170 may send a packaged third message to sender system 110. The packaged third message may contain the encrypted third message, identity of the hashing algorithm and the digital signature. The manner in which sender system 110 processes the packaged third message is described below.

[0088] 8. Sender System Processing Second Time

[0089]FIG. 5 is a flow chart illustrating the operations performed on the packaged third message by sender system 110. Sender system 110 may verify if the packaged third message has been sent by receiver system 170 in a similar manner as described in the above section with reference in step 410 of FIG. 4. Similarly, sender system 110 may also confirm the integrity of the encrypted third message as described in steps 420, 430 and 435 of FIG. 4. Control then passes to step 540.

[0090] In step 540, sender system 110 may decrypt the encrypted third message using the private key to generate the third message. In step 550, sender system 110 may perform an XOR operation between the third message and RM-A to generate a fourth message. In step 560, sender system 110 encrypts the fourth message with the public key of receiver system 170 to generate an encrypted fourth message.

[0091] In step 570, sender system 110 performs a one-way encryption on the encrypted fourth message to generate a third message digest. In step 580, sender system 110 encrypts the third message digest with the private key to generate a digital signature.

[0092] In step 590, sender system 110 sends a packaged fourth message to receiver system 170. The packaged fourth message may contain the encrypted fourth message, hashing algorithm and the digital signature. The manner in which receiver system 170 processes the packaged fourth message to recover the original message is described below with reference to FIG. 6.

[0093] 9. Receiver System Processing Second Time

[0094]FIG. 6 is a flow chart illustrating the operations performed on the fourth message by receiver system 170. Receiver system 170 may confirm the integrity of the packaged fourth message in a similar manner as described in the above section with reference in step 410 of FIG. 4. Similarly, receiver system 170 may also check if the encrypted fourth message has been modified as described in steps 420, 430 and 435 of FIG. 4.

[0095] In step 640, receiver system 170 decrypts the encrypted fourth message using the corresponding private key to generate the fourth message. In step 650, receiver system 170 may perform an XOR operation between the fourth message and RM-B to generate a fifth message. Due to the associative and commutative properties of the XOR operations, the fifth message may be identical to the original message sent by sender system 110 to receiver system 170.

[0096] Thus, by using the approaches described with reference to FIGS. 3-6, sender system 110 may send a message securely to receiver system 170. The approach is now described with reference to an example message that sender system 110 needs to send to receiver system 170.

[0097] 10. Example Message

[0098] It is assumed that sender system 110 sends a message (“original message”) containing the bits “10110110” to receiver system 170. The manner in which sender system 110 sends the message securely is described below.

[0099] Sender system 110 first generates a random message (RM-A) whose size is as that of the original message to be sent. It is assumed that the random message equals “11010100”. Sender system 110 then encrypts the original message with the random message by performing an XOR operation on the original message and the random message as illustrated below:

[0100] 1 0 1 1 0 1 1 0 (Original Message)

[0101] 1 1 0 1 0 1 0 0 (Random Message generated by sender system 110)

[0102] 0 1 1 0 0 0 1 0 (second message)

[0103] The second message is further encrypted with the public key of receiver system 170 to generate the encrypted second message. Sender system 110 may then generate a first message digest by applying one-way algorithm (hashing algorithm) on the encrypted second message.

[0104] The first message digest may then be encrypted using the private key of sender system 110 to generate the digital signature. Sender system 110 then sends a packaged second message to receiver system 170 which contains the encrypted second message, hashing algorithm and the digital signature.

[0105] When receiver system 170 receives the packaged second message, receiver system 170 verifies if the packaged second message is sent by sender system 110 and if the second encrypted message has been modified, as described in the earlier sections.

[0106] Receiver system 170 may then decrypt the encrypted second message (using the private key of receiver system 170) to obtain the second message. . Receiver system 170 may encrypt the second message with the random message by performing an XOR operation as illustrated below. It is assumed that the random message generated by receiver system 170 equals “10010101”.

[0107] 0 1 1 0 0 0 1 0 (second message)

[0108] 1 0 0 1 0 1 0 1 (Random Message RM-B)

[0109] 1 1 1 0 1 1 1 (Third message)

[0110] Receiver system 170 them encrypts third message with the public key of sender system 110 to generate the encrypted third message. Receiver system 170 may then generate a second message digest by applying one-way algorithm (hashing algorithm) on the encrypted third message.

[0111] The second message digest may then be encrypted using the private key of receiver system 170 to generate the digital signature. Receiver system 170 then sends a packaged third message to sender system 110 which contains the encrypted third message, hashing algorithm and the digital signature.

[0112] When sender system 110 receives the packaged third message, sender system 110 firsts verifies if the packaged third message is sent by receiver system 170 as described in the earlier sections.

[0113] Sender system 110 may then decrypt the encrypted third message (using the private key of sender system 110) to obtain the third message. Sender system 110 may encrypt the third message with RM-B by performing an XOR operation as illustrated below:

[0114] 1 1 1 1 0 1 1 1 (Third message)

[0115] 1 1 0 1 0 1 0 0 (random message)

[0116] 0 0 1 0 0 0 1 1 (fourth message)

[0117] The fourth message is further encrypted with the public key of receiver system 170 to generate the encrypted fourth message. Sender system 110 may then generate a third message digest by applying one-way algorithm (hashing algorithm) on the third encrypted message.

[0118] The third message digest may then be encrypted using the private key of sender system 110 to generate the digital signature. Sender system 110 then sends a packaged fourth message to receiver system 170 which contains the encrypted fourth message, hashing algorithm and the digital signature.

[0119] When receiver system 170 receives the packaged fourth message, receiver system 170 may confirm that the message is in fact sent by sender system 130 and that the message has not been modified by an unknown third party using the digital signature contained in the packaged fourth message. Receiver system 170 may then decrypt the encrypted fourth message (using the private key of receiver system 170) to obtain the fourth message. Receiver system 170 may encrypt the fourth message with the random message by performing an XOR operation as illustrated below:

[0120] 0 0 1 0 0 0 1 1 (fourth message)

[0121] 1 0 0 1 0 1 0 1 (Random Message)

[0122] 1 0 1 1 0 1 1 0 (fifth message)

[0123] It may be noted that the fifth message is identical to the original message sent by sender system 110. Thus, sender system 110 may send a message securely to receiver system 170.

[0124] 11. Alternative Approach

[0125] The level of security provided by the above embodiment is sufficient for transmitting highly confidential messages, but in case if required, the technique may be further enhanced to provide a higher level of security. The manner in which the above technique may be enhanced is described below with reference to FIG. 7.

[0126]FIG. 7 is shown containing sender system 110, receiver system 170 and third system 750. Third system 750 may be used as a middle system to send messages form sender system 110 to receiver system 170. The manner in which the above approach may be used along with third system 750 is described below. It is assumed that third system 750 may generate a random number (RM-C) whose size equals the original message sent by sender system 110.

[0127] It is assumed that sender system 110 is required to send a message (“original message”) to receiver system 170. First sender system 110 encrypts and sends the original message to third system 750. That is, sender system 110 first performs an XOR operation between the original message and the random message to generate the second message. The second message is further encrypted using the public key of third system 750 to generate the encrypted second message. The mathematical expression for the encrypted second message is as follows:

Encrypted second message=EC′(X(OM, RM-A))   Equation (12)

[0128] Similarly, third system 750 processes the encrypted second message in the similar manner as described above to generate a encrypted third message. The encrypted third message is sent to receiver system 170 . The encrypted third message may be represented mathematically as follows:

Encrypted third message=EB′(X(DC(EC′(X(OM, RM-A))), RM-C))   Equation (13)

[0129] Similarly, receiver system 170 generates a encrypted fourth message (as described earlier)and sends it to sender system 110. The encrypted fourth message may be represented as follows:

Encrypted fourth message=EA′(X(DB(EB′(X(DC(EC′(X(OM, RM-A))), RM-C))), RM-B))   Equation (14)

[0130] Sender system 110 generates an encrypted fifth message and sends it to third system 750. The encrypted fifth message may be represented as follows:

Encrypted fifth message=EC′(X(DA(EA′(X(DB(EB′(X(DC(EC′(X(OM, RM-A))), RM-C))), RM-B))),RM-A))   Equation (15)

[0131] Third system 750 generates an encrypted sixth message and send it to receiver system 170. The encrypted sixth message may be represented as follows:

Encrypted sixth message=EB′(X(D(EC′(X(DA(EA′(X(DB(EB′(X(DC(EC′(X(OM, RM-A))), RM-C))), RM-B))),RM-A))),RM-C))   Equation (16)

[0132] On simplifying the above expression, it may be noted that the encrypted sixth message is equal to the original message.

[0133] An advantage of the above approach is that an intruder may require the private keys of sender system 110, receiver system 170 and third system 750 to decipher the message. In addition, a copy of all the five encrypted messages may be required which typically, is very difficult to obtain. It may be appreciated that third system 750 may not be able to decipher the message since all the keys are not available to the third system 750.

[0134] It may be noted that though the above approach has been described with reference to third system 750, the approach may also be used with several number of systems (between sender system 110 and receiver system 170). It may be noted that more systems between sender system 110 and receiver system 170 may decrease the probability of an intrude breaking into a message.

[0135] 12. Software Implementation

[0136]FIG. 8 is a block diagram illustrating the details of an embodiment of digital system 800, which can be used to implement sender system 110, receiver system 170. Digital system 800 is shown containing processing unit 810, random access memory (RAM) 820, storage 830, output interface 860, network interface 880 and input interface 890. Each component is described in further detail below.

[0137] Output interface 860 provides output signals (e.g., display signals to a display unit, not shown) which can form the basis for a suitable user interface for a user to interact with sender system 110. Input interface 890 (e.g., interface with a key-board and/or mouse, not shown) enables a user to provide any necessary inputs to sender system 110.

[0138] Output interface 860 and input interface 890 can be used, for example, to enable a user to interact with sender system 110. For example, a user may provide the inputs like the destination of the message, etc., which may be required when sending the message to another system using input interface 890 and the corresponding result (like a message informing the user that the message has been sent) may be viewed on a display unit (not shown) using output interface 860.

[0139] Network interface 880 enables sender system 110 to send and receive messages on communication networks using protocols such as internet protocol (IP). Network interface 880, output interface 860 and input interface 890 can be implemented in a known way.

[0140] RAM 820 and storage (secondary memory) 830 may together be referred to as a memory. RAM 820 receives instructions and data corresponding to the message to be sent on path 850 from storage 830, and provides the instructions to processing unit 810 for execution.

[0141] Secondary memory 830 may contain units such as hard drive 835 and removable storage drive 837. Secondary storage 830 may store the software instructions and data, which enable sender system 110 to provide several features in accordance with the present invention.

[0142] Some or all of the data and instructions may be provided on removable storage unit 840, and the data and instructions may be read and provided by removable storage drive 837 to processing unit 810. Floppy drive, magnetic tape drive, CD-ROM drive, DVD Drive, Flash memory, removable memory chip (PCMCIA Card, EPROM) are examples of such removable storage drive 837.

[0143] Processing unit 810 may contain one or more processors. In general processing unit 810 reads sequences of instructions from various types of memory medium (including RAM 820, storage 830 and removable storage unit 840), and executes the instructions to provide several features of the present invention as described above.

[0144] An embodiment of the present invention is implemented using software running (that is, executing) in digital system 800. In this document, the term “computer program product” is used to generally refer to removable storage unit or hard disk installed in hard drive. These computer program products are means for providing software to digital system 800. These computer program products generally contain computer readable medium providing software to digital system 800. The computer readable medium can be provided external to digital system 800.

[0145] 13. Conclusion

[0146] While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example only, and not limitation. Thus, the breadth and scope of the present invention should not be limited by any of the above described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents. 

What is claimed is:
 1. A method of sending an original message from a sender to a receiver, said method comprising: performing in said sender a first computational logic of said original message and a first random message on a bit by bit basis to generate a second message, wherein said first computational logic comprises one of XOR or XNOR operation; sending said second message to said receiver; performing in said receiver a second computational logic of said second message and a second random message on a bit by bit basis to generate a third message, wherein said second computational logic comprises one of XOR or XNOR operation; sending said third message to said sender; performing in said sender said first computational logic of said third message and said first random message to generate a fourth message; sending said fourth message to said receiver; and performing in said receiver said second computational logic of said fourth message and said second random message to generate said original message.
 2. The method of claim 1, said method further comprising encrypting said second message using a public key of said receiver to generate an encrypted second message, wherein said encrypted second message is sent to said receiver system.
 3. The method of claim 2, said method further comprising: generating a first message digest by performing a one way encryption of said encrypted second message; and generating a first digital signature using a private key of said sender system, wherein said first digital signature is sent along with said encrypted second message to said receiver.
 4. A method of processing a first message in a system, said method comprising: performing a computational logic on said first message to generate an encrypted message, wherein said computational logic is designed such that said first message is generated again by performing said computational logic a plurality of times with an output of each time being used as an input for a next time; sending said encrypted message to another system; receiving another message in response to said sending; and performing said computational logic on said another message.
 5. The method of claim 4, wherein said computational logic is associative and commutative.
 6. The method of claim 5, wherein said computational logic comprises one of XOR and XNOR operation, wherein said performing is computed on a bit by bit basis of said first message and a random message.
 7. The method of claim 6, wherein said system comprises a sender and said first message comprises an original message to be sent from said sender to a receiver, said encrypted message comprises a second message, said method further comprising: encrypting said second message using a public key of said receiver to generate an encrypted second message, wherein said encrypted second message is sent to said receiver system.
 8. The method of claim 7, said method further comprising: generating a first message digest by performing a one way encryption of said encrypted second message; and generating a first digital signature by encrypting said first message digest using a private key of said sender, wherein said first digital signature is sent along with said encrypted second message to said receiver.
 9. The method of claim 7, further comprising sending said another message to said receiver.
 10. The method of claim 8, wherein said another message is sent in an encrypted form along with a digital signature.
 11. The method of claim 6, wherein said system comprises a receiver, wherein said first message comprises a second message generated by a sender, wherein said second message is generated in said sender by performing another computational logic on an original message.
 12. The method of claim 11, wherein said second message is received in an encrypted form and is received along with a digital signature generated by said sender, said method further comprising: verifying that said second message is sent by said sender using said digital signature; verifying that said second message in encrypted form is not modified when transmitted from said sender to said receiver using said first message digest; decrypting said second message in said encrypted form using a private key of said receiver.
 13. The method of claim 12, further comprising: performing said computational logic on said second message to generate a third message; and sending said third message to said sender.
 14. The method of claim 13, further comprising: receiving a fourth message in response to sending said third message; performing said computational logic on said third message to generate said original message.
 15. The method of claim 14, wherein said fourth message is received in an encrypted form along with a third digital signature.
 16. The method of claim 15, wherein said receiver sends said third message to a third system which perform a third computation logic on said third message and sends a resulting message to said sender.
 17. A computer program product for use with a digital system, said computer program product comprising a computer usable medium having computer readable program code means embodied in said computer usable medium, said computer readable program code means processing a first message in said digital system, said computer program product means comprising: performing means for performing a computational logic on said first message to generate an encrypted message, wherein said computational logic is designed such that said first message is generated again by performing said computational logic a plurality of times with an output of each time being used as an input for a next time; sending means for sending said encrypted message to another system; receiving means for receiving another message in response to said sending; and performing means for performing said computational logic on said another message.
 18. The computer program product of claim 17, wherein said computational logic is associative and commutative.
 19. The computer program product of claim 18, wherein said computational logic comprises one of XOR and XNOR operation, wherein said performing means for performing is computed on a bit by bit basis of said first message and a random message.
 20. The computer program product of claim 19, wherein said system comprises a sender and said first message comprises an original message to be sent from said sender to a receiver, said encrypted message comprises a second message, said computer program product further means comprising: encrypting means for encrypting said second message using a public key of said receiver to generate an encrypted second message, wherein said encrypted second message is sent to said receiver system.
 21. The computer program product of claim 19, said computer program product further means comprising: generating means for generating a first message digest by performing a one way encryption of said encrypted second message; and generating means for generating a first digital signature using a private key of said sender, wherein said first digital signature is sent along with said encrypted second message to said receiver.
 22. The computer program product of claim 20, further comprising sending means for sending said another message to said receiver.
 23. The computer program product of claim 21, wherein said another message is sent in an encrypted form along with a digital signature.
 24. The computer program product of claim 19, wherein said digital system comprises a receiver, wherein said first message comprises a second message generated by a sender, wherein said second message is generated in said sender by performing another computational logic on an original message.
 25. The computer program product of claim 24, wherein said second message is received in an encrypted form and is received along with a digital signature generated by said sender, said computer program product further means comprising: verifying means for verifying that said second message is sent by said sender using said digital signature; verifying means for verifying that said second message in encrypted form is not modified when transmitted from said sender to said receiver using said first message digest; decrypting means for decrypting said second message in said encrypted form using a private key of said receiver.
 26. The computer program product of claim 25, further comprising: performing means for performing said computational logic on said second message to generate a third message; and sending means for sending said third message to said sender.
 27. The computer program product of claim 26, further comprising: receiving means for receiving a fourth message in response to sending said third message; performing means for performing said computational logic on said third message to generate said original message.
 28. The computer program product of claim 27, wherein said fourth message is received in an encrypted form along with a third digital signature.
 29. The computer program product of claim 28, wherein said receiver sends said third message to a third system which performs a third computation logic on said third message and sends a resulting message to said sender.
 30. A digital system processing a first message, said digital system comprising: means for performing a computational logic on said first message to generate an encrypted message, wherein said computational logic is designed such that said first message is generated again by performing said computational logic a plurality of times with an output of each time being used as an input for a next time; means for sending said encrypted message to another system; means for receiving another message in response to said sending; and means for performing said computational logic on said another message.
 31. The digital system of claim 30, wherein said computational logic is associative and commutative.
 32. The digital system of claim 31, wherein said computational logic comprises one of XOR and XNOR operation, wherein said performing is computed on a bit by bit basis of said first message and a random message.
 33. The digital system of claim 32, wherein said digital system comprises a sender and said first message comprises an original message to be sent from said sender to a receiver, said encrypted message comprises a second message, said digital system further comprising: encrypting said second message using a public key of said receiver to generate an encrypted second message, wherein said encrypted second message is sent to said receiver system.
 34. The digital system of claim 33, said digital system further comprising: generating a first message digest by performing a one way encryption of said encrypted second message; and generating a first digital signature by encrypting said first message digest using a private key of said sender, wherein said first digital signature is sent along with said encrypted second message to said receiver.
 35. The digital system of claim 33, further comprising sending said another message to said receiver.
 36. The digital system of claim 34, wherein said another message is sent in an encrypted form along with a digital signature.
 37. The digital system of claim 32, wherein said digital system comprises a receiver, wherein said first message comprises a second message generated by a sender, wherein said second message is generated in said sender by performing another computational logic on an original message.
 38. The digital system of claim 37, wherein said second message is received in an encrypted form and is received along with a digital signature generated by said sender, said digital system further comprising: verifying that said second message is sent by said sender using said digital signature; verifying that said second message in encrypted form is not modified when transmitted from said sender to said receiver using said first message digest; decrypting said second message in said encrypted form using a private key of said receiver.
 39. The digital system of claim 38, further comprising: performing said computational logic on said second message to generate a third message; and sending said third message to said sender.
 40. The digital system of claim 39, further comprising: receiving a fourth message in response to sending said third message; performing said computational logic on said third message to generate said original message.
 41. The digital system of claim 40, wherein said fourth message is received in an encrypted form along with a third digital signature.
 42. The digital system of claim 41, wherein said receiver sends said third message to a third system which perform a third computation logic on said third message and sends a resulting message to said sender. 